﻿using CCWin;
using StudentSynchronization.Daemon;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ProcessMonitor
{
    public partial class FrmHelp : Skin_Color
    {
        public FrmHelp()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void FrmHelp_Load(object sender, EventArgs e)
        {
            this.label1.Text = "版本号：" + ProcessData.VesinNo;
            checkBox1.Checked =new AutoStartNoAdmin().IsAutoStart();
        }

        private void checkBox1_CheckedChanged(object sender, EventArgs e)
        {
            if (checkBox1.Checked)
            {
                new AutoStartNoAdmin().SetAutoStart(true);
            }
            else 
            {
                new AutoStartNoAdmin().SetAutoStart(false);
            }
        }
    }
}
